package com.geek.springcloud.alibaba.service;

import com.geek.springcloud.entities.CommonResult;
import com.geek.springcloud.entities.Payment;
import org.springframework.stereotype.Component;

/**
 * @ClassName PaymentFallbackService
 * @Author zzm
 * @Data 2021/4/13 15:45
 * @Version 1.0
 */
@Component
public class PaymentFallbackService implements PaymentService {
    @Override
    public CommonResult<Payment> paymentSQL(Long id) {
        return new CommonResult<>(444, "服务降级返回，-------PaymentFallbackService", new Payment(id, "errorSerial"));
    }
}
